package com.lvhr.example.provider;

import com.lvhr.example.common.service.UserService;
import com.lvhr.example.impl.UserServiceImpl;
import com.lvhr.rpc.server.HttpServer;
import com.lvhr.rpc.server.VertxHttpServer;
import com.lvhr.rpc.registry.LocalRegistry;


/**
 * 简易服务提供者example
 */
public class EasyProviderExample {
    public static void main(String[] args){

        //注册服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        //启动web服务
        HttpServer httpServer =  new VertxHttpServer();
        httpServer.doStart(8080);
    }
}
